﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TheStar.Lib
{
    public class EstimatedPath : Path
    {
        private double estimatedCost;

        public EstimatedPath(object node) : base(node)
        { }
        private EstimatedPath(EstimatedPath path)
            : base(path)
        {
            this.estimatedCost = path.estimatedCost;
        }

        public double EstimatedCost
        {
            get { return estimatedCost; }
            set { estimatedCost = value; }
        }

        public override double Cost
        {
            get { return base.Cost + this.EstimatedCost; }
        }

        public override object Clone()
        {
            return new EstimatedPath(this);
        }
    }
}
